package com.course.business.controller;

import com.course.server.domain.Test;
import com.course.server.service.TestService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import springfox.documentation.oas.annotations.EnableOpenApi;

import javax.annotation.Resource;
import java.util.List;

/**
 * ClassName: TestController
 * Description:
 * date: 2021/8/18 16:55
 *
 * @author 17878
 * @since JDK 1.8
 */
@EnableOpenApi
@Api("business测试接口")
@RestController
public class TestController {
    @Resource
    private TestService testService;

    @ApiOperation("测试方法")
    @RequestMapping("/test")
    public List<Test> test(){
        return testService.list();
    }


}
